import { httpGet, httpPost, httpDelete, httpPut } from '@/http'
import { services } from '@/config'

export const getPage = data => httpPost(`${services.personnelService}fyprojecttopicupdate/page`, data)

export const save = data => httpPost(`${services.personnelService}fyprojecttopicupdate`, data)

export const load = id => httpGet(`${services.personnelService}fyprojecttopicupdate/${id}`)

export const create = params => httpGet(`${services.personnelService}fyprojecttopicupdate/create`, params)

export const update = data => httpPut(`${services.personnelService}fyprojecttopicupdate`, data)

export const batchDelete = ids =>
  httpDelete(`${services.personnelService}fyprojecttopicupdate/batchDelete`, ids, null, false)
